package com.cqyanyu.yanyu.model;

/**
 * 事件通知模板
 * Created by cheng on 2016/7/6.
 */
public class EventEntity {
    public int id;
    public int type;
    public int hashCode;
    public String state;
    public Object data;

    public <T> T getData() {
        return (T) data;
    }

    public void setPostClass(Class classz) {
        hashCode = classz.getName().hashCode();
    }

    public boolean isEqual(Class classz) {
        return hashCode == classz.getName().hashCode();
    }


}
